home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Documents / develop GX articles & columns / Dev GX Extensions code ƒ / 4-Up.make < prev    next >
Encoding:
Text File  |  1995-04-10  |  2.1 KB  |  74 lines  |  [TEXT/MPS ]

  1. # ------------------------------------------------------------------------------
  2. #
  3. #    FILENAME
  4. #        4-Up.make
  5. #
  6. #    DESCRIPTION
  7. #        This is the make file for the 4-Up printing extension.
  8. #
  9. #    COPYRIGHT
  10. #        Copyright Apple Computer, Inc. 1991-1992
  11. #        All rights reserved. 
  12. #    
  13. #    MODIFICATION HISTORY
  14. #        06/10/91            PrintShop            Initial Implementation
  15. #        10/22/92            Duane Byram            Added changes for version control
  16. #
  17. #
  18. #-------------------------------------------------------------------------------
  19.  
  20.  
  21. #========== Directories Containing Source and Object Files ==========
  22.  
  23. SourceFiles        = "{FourUp}"
  24. Objects            = "{FourUp}Objects:"
  25.  
  26. #========== Compiler Options ==========
  27.  
  28. AsmOptions        = -sym off -i {PrIncludes} -case obj
  29. CompileOptions    = -mbg full -sym off  -opt full -b2 -r -i {PrIncludes} -i {SkiaInterfaces} -i {SourceFiles}
  30. RezOptions        = -s {PrIncludes} -i {PrIncludes} -d SystemSevenOrLater=1 {RIncludes}SysTypes.r  {RIncludes}Types.r    {PrIncludes}PrintingResTypes.r -i {SourceFiles}
  31.  
  32. #========== Files to Link With ==========
  33.  
  34. CObjs            =    "{Objects}4-Up.a.o"                    ∂
  35.                     "{Objects}4-Up.c.o"                    ∂
  36.                     {Libraries}Runtime.o
  37.  
  38.  
  39. #========== Assembly Build Statements - 4-Up.a ==========
  40.  
  41. {Objects}4-Up.a.o    ƒ    {SourceFiles}4-Up.a        ∂
  42.                         {SourceFiles}4-Up.make
  43.     Echo "Assembling 4-Up.a"
  44.     Asm {AsmOptions}  {SourceFiles}4-Up.a -o {Objects}4-Up.a.o
  45.  
  46.  
  47. #========== Compile Build Statements - 4-Up.c ==========
  48.  
  49. {Objects}4-Up.c.o    ƒ        {SourceFiles}4-Up.c        ∂
  50.                             {SourceFiles}4-Up.make    ∂
  51.                             PrIncludesDump
  52.     Echo "Compiling 4-Up.c"
  53.     C {CompileOptions} {SourceFiles}4-Up.c  -o {Objects}4-Up.c.o
  54.  
  55.  
  56. #========== Link and Rez Build Statements ==========
  57.  
  58. {PrTargets}Permods:4-Up ƒ            {CObjs}                        ∂
  59.                                     {SourceFiles}4-Up.r            ∂
  60.                                     {SourceFiles}4-Up.make
  61.     Echo "Linking 4-Up Printing Extension"
  62.     Link    -ra =resSysHeap,resPurgeable    ∂
  63.             -t 'pext'                        ∂
  64.             -c '4-Up'                        ∂
  65.             -rt pext=0                        ∂
  66.             -sg 4-Up                        ∂
  67.             -m FourUpEntry                    ∂
  68.             {CObjs}                            ∂
  69.             -o {PrTargets}Permods:4-Up;
  70.     SetFile {PrTargets}Permods:4-Up -a iB;
  71.     Echo "Rezzing 4-Up Printing Extension"
  72.     Rez {RezOptions} -rd -o {PrTargets}Permods:4-Up {SourceFiles}4-Up.r -append
  73.     MakeVersResource {Targ}
  74.